﻿using RpcClient.Broadcast;
using RpcSync.Collect;

namespace RpcSync.Service.Event
{
    internal class ServerGroupEvent : RpcClient.Interface.IRpcApiService
    {
        private IRemoteServerGroupCollect _ServerGroup;

        public ServerGroupEvent(IRemoteServerGroupCollect serverGroup)
        {
            this._ServerGroup = serverGroup;
        }

        public void RefreshServerGroup(RefreshServerGroup refresh)
        {
            _ServerGroup.Refresh(refresh.RpcMerId);
        }
    }
}
